/*
 * udsv_events.h
 *
 *  Created on: 2021年2月18日
 *      Author: taoyu
 */

#ifndef UDS_SERVER_UDSV_EVENTS_H_
#define UDS_SERVER_UDSV_EVENTS_H_

#include "framework_types.h"

/* pass the received UDS message from low driver or TP layer, e.g. UART, CAN, LIN, ... */
// @param   pData data buffer of the received message, the first byte MUST be the service ID
// @param   length length of the data is the data buffer
// @return	>0: the data bytes copied to the internal buffer
//			-1: argument invalid
//			-2: state not ready
extern int udsvEvent_messageReceived(uint8 * pData, uint8 length);

#endif /* UDS_SERVER_UDSV_EVENTS_H_ */
